
with open("to_be_exec.py") as f:
    global_content, local_content = {}, {}
    exec f.read() in global_content#, local_content
    
    print global_content
    print '----------------------'
    print local_content

